package com.cgsrp.cgsrp_user_province.controller;

import com.cgsrp.cgsrp_shopping.service.ProductService;
import com.cgsrp.cgsrp_user_province.service.ProvincesService;
import com.cgsrp.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("province")
public class ProvinceController {
    @Autowired
    private ProvincesService provincesService;

    @GetMapping("list")
    public Result list(){
        return provincesService.list();
    }
}
